package service.impl;

import dao.BooksDao;
import pojo.Books;
import service.BookService;

import java.util.ArrayList;

public class BookServiceImpl implements BookService{
    BooksDao booksDao;

    public BooksDao getBooksDao() {
        return booksDao;
    }

    public void setBooksDao(BooksDao booksDao) {
        this.booksDao = booksDao;
    }


    @Override
    public ArrayList<Books> getBookList() {
        return booksDao.getBookList();
    }

    @Override
    public int delBookbyID(int bID) {
        return booksDao.delBookbyID(bID);
    }

    @Override
    public Books searchBookByID(int bID) {
        return booksDao.searchBookByID(bID);
    }

    @Override
    public int updateBook(Books book) {
        return booksDao.updateBook(book);
    }

    @Override
    public int addBook(Books book) {
        return booksDao.addBook(book);
    }
}
